<?php

namespace app\controller\admin\wz;

use app\model\admin\wz\Wzlabel;
use http\Client;
use laytp\controller\Backend;
use laytp\library\CommonFun;

/**
 * Class Equipment
 * @package app\controller\admin\run
 */
class Label extends Backend
{
    /**
     * api_log模型对象
     * @var \app\model\api\Log
     */
    protected $model;
    protected $hasSoftDel=0;//是否拥有软删除功能

    protected $noNeedLogin = []; // 无需登录即可请求的方法
    protected $noNeedAuth = ['index', 'info']; // 无需鉴权即可请求的方法

    public $orderRule = ['id' => 'asc'];

    public function _initialize()
    {
        $this->model = new Wzlabel();
    }

    public function list()
    {
        $where = $this->buildSearchParams();
        $order = $this->buildOrder();
        $data = $this->model->where($where)->order($order)->cache(true)->select()->toArray();
        return $this->success('数据获取成功', $data);
    }






}